Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: Replace github.com/nspcc-dev/neofs-api-go/v2 module #667

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cthulhu-rider
Copy link
Contributor

  • ReadFromV2 / WriteToV2
  • request/response sign/verify funcs
  • Client

Signed-off-by: Leonard Lyubich <[email protected]>
It will be useful for `interface { Marshal() []byte }` implementations.

Signed-off-by: Leonard Lyubich <[email protected]>
)

// Decimal represents decimal number for accounting operations.
//
// Decimal is mutually compatible with github.com/nspcc-dev/neofs-api-go/v2/accounting.Decimal
// message. See ReadFromV2 / WriteToV2 methods.
// Decimal is mutually compatible with [protoaccounting.Decimal] message. See
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest to drop such statements since regular user is not interested in this

@roman-khimov @carpawell

// See also WriteToV2.
func (d *Decimal) ReadFromV2(m accounting.Decimal) error {
*d = Decimal(m)
// See also [Decimal.ProtoMessage].
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this, Client and node developers know what to use

//
// See also WriteToV2.
func (d *Decimal) ReadFromV2(m accounting.Decimal) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that temporary Deprecated mark wont work: conflicting import panic occurs

Signed-off-by: Leonard Lyubich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant